/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;

/**
 * <p>Project: javaseapp - TreeMap1
 * <p>Powered by webrx On 2021-08-12 11:41:21
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 16
 */
public class TreeMap1 {
    public static void main(String[] args) {
        Map<String, Integer> tm = new TreeMap<>();
        tm.put("java", 100);
        tm.put("php", 10);
        tm.put("c", 90);
        tm.put("python", 70);
        tm.put("go", 30);
        tm.put("ruby", 15);
        System.out.println(tm);
        System.out.println(tm.keySet());
        System.out.println(tm.values());
    }
}
